#include <variable.hpp>


Public Member Functions | |
| Variable (void) | |
| Default constructor. | |
| virtual | ~Variable (void) |
| Destructor. | |
| int | id (void) const |
| Get this variable's id. | |
| void | id (const int &id) |
| Set this variable's id. | |
| void | clear () |
| reset the variable's id | |
| void | accept (VariableVisitor &visitor) |
| Allow visits from visitors. | |
| void | setNoInit (bool flag) |
| bool | getNoInit () |
| return state of no init flag | |
| gridpack::optimization::Variable::Variable | ( | void | ) |
Default constructor.
| virtual gridpack::optimization::Variable::~Variable | ( | void | ) | [virtual] |
Destructor.
| void gridpack::optimization::Variable::accept | ( | VariableVisitor & | visitor | ) |
Allow visits from visitors.
| void gridpack::optimization::Variable::clear | ( | ) |
reset the variable's id
| bool gridpack::optimization::Variable::getNoInit | ( | ) |
return state of no init flag
| void gridpack::optimization::Variable::id | ( | const int & | id | ) |
Set this variable's id.
| int gridpack::optimization::Variable::id | ( | void | ) | const |
Get this variable's id.
| void gridpack::optimization::Variable::setNoInit | ( | bool | flag | ) |
Set internal no init flag. This turn off variable declaration statement in Julia code generator.
1.6.1